package com.macro.mall.demo.design.pattern.template;

/**
 * 业务模板回调接口,定义模板步骤的方法
 */
public interface BizProcessTemplateCallback<Response, Request, Model> {

    String getBizSceneCode();

    void checkParam(Request request);

    Model bizProcess(Request request);

    Response buildResponse(Model model);

    void exceptionProcess(Request request);

    void finallyProcess(Request request, Response response);
}
